package com.marvels.approve.common.dao;

import com.marvels.approve.process.dto.LoanApplyCaseDTO;
import org.apache.ibatis.annotations.Param;

public interface McamLoanApplyInfoCommonDao {
	/**
	 * 更新mcam_loan_apply_info状态
	 * @param loanId
	 * @param status
	 * @param updatedBy
	 * @return
	 */
	public int updateMcamLoanApplyInfoStatusByLoanId(@Param("loanId")String loanId,@Param("status")String status,@Param("updatedBy")String updatedBy);
	
	/**
	 * 查询某个节点下的操作人
	 * @param loanApplyCase
	 * @return
	 */
	public String getHistoryAssigneeOfNodeCode(@Param("loanId")String loanId,@Param("curNodeCode")String curNodeCode);
	
	/**
	 * 退单到上一节点的操作，更新操作人为上一节点的操作人
	 * @param loanApplyCase
	 * @return
	 */
	public int updateCaseAssigneeOfReturn(LoanApplyCaseDTO loanApplyCase);
	
	String selectApplyInfoByLoanId(String loanId);
	
	String selectMobileByLoanId(String loanId);
}
